/**
* Copyright (c) By zengqh.
*
* This program is just for fun or demo, in the hope that it  
* will be useful, you can redistribute it and/or modify freely.
*
* Time: 2012/07/26
* File: OGLDepthStencilRenderTarget.h
* Blog: http://www.cnblogs.com/zengqh/
**/

#ifndef OGLDepthStencilRenderTarget_h__
#define OGLDepthStencilRenderTarget_h__

#include "../DepthStencilRenderTarget.h"

class OGLDepthStencilRenderTarget : public DepthStencilRenderTarget
{
public:
	OGLDepthStencilRenderTarget(const Dimension2Di& size);
	~OGLDepthStencilRenderTarget();

	void onAttached(FrameBuffer* fb, u32 att);
	void onDetached(FrameBuffer* fb, u32 att);

	GLuint getRBO() const;

protected:
	void setup();

protected:
	GLuint		_rbo;
};

#endif    /* OGLDepthStencilRenderTarget_h__ */